package cn.jiahua.hospital.service;

import cn.jiahua.hospital.dto.Page;
import cn.jiahua.hospital.pojo.SmsLog;
import com.aliyun.dysmsapi20170525.models.SendSmsResponseBody;

import java.util.List;
import java.util.Map;

/**
 * Created by shang-pc on 2015/11/7.
 */
public interface SmsLogService {

    public SmsLog getSmsLogById(Long id);

    public List<SmsLog> getSmsLogListByMap(Map<String, Object> param);

    public Integer getSmsLogCountByMap(Map<String, Object> param);

    public Integer qdtxAddSmsLog(SmsLog smsLog);

    public Integer qdtxModifySmsLog(SmsLog smsLog);

    public Integer qdtxDeleteSmsLogById(Long id);

    public Integer qdtxBatchDeleteSmsLog(String ids);

    public Page<SmsLog> querySmsLogPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize);


    /**
     * 发送短信
     *
     * @param phone
     * @param codeType
     */
    public SendSmsResponseBody sendMessage(String phone, Integer codeType) throws Exception;


}
